package com.chuangke.flowable.constant;

import java.util.HashMap;
import java.util.Map;

import com.chuangke.flowable.model.FlowableNode;

public class Consts {

	public static final String VAR_NAME_DEPT = "deptId";
	public static final String VAR_NAME_AUDIT_OPT = "audit";
	public static final String VAR_NAME_FORM = "formModel";

	public static final String EDIT_USER_TASK_ID = "editTask";

	public static final String VAR_AUDIT_OPT_AGREE = "agree";// 同意
	public static final String VAR_AUDIT_OPT_REJECT = "reject";// 退回
	public static final String VAR_AUDIT_OPT_REVOKE = "revoke";// 撤回

	public static final Map<String, String> OPT_STATE_MAP = new HashMap<>();

	static {
		OPT_STATE_MAP.put(VAR_AUDIT_OPT_AGREE, FlowableNode.STATE_AGREE);
		OPT_STATE_MAP.put(VAR_AUDIT_OPT_REJECT, FlowableNode.STATE_BACK);
		OPT_STATE_MAP.put(VAR_AUDIT_OPT_REVOKE, FlowableNode.STATE_REVOKE);
	}

}
